//Initialize Swiper 幻灯片
var swiper = new Swiper('.swiper-container', {
  loop: true,
  autoplay: {
	delay: 6000,
	disableOnInteraction: false,
  },
  pagination: {
	el: '.swiper-pagination',
	dynamicBullets: true,
  },
});

//scrollDiv  活动滚动
function autoscroll(obj){
	  $(obj).find("ul:first").animate({marginTop:"-48px"},1000,function(){
		  var str=$(this).css("marginTop","0px")
		  for(var i=0;i<4;i++){
			  str.find("li:first").appendTo(this)
		  }
	  })
  }
  $(document).ready(function(){
	  setInterval('autoscroll(".scroll")',3000)
  })

// search  搜索切换
$('.offside-show').on("click",function(){
　　　$("html").css({overflow:"hidden"});
     $('.offside-right').css({right:"0"})
});

$(".offside-close").on("click",function(){
　　　$("html").css({overflow:"auto"});
     $('.offside-right').css({right:"-100%"})
});
  
$(".footnav a:eq(0)").addClass("active");